<%--
  ~ Copyright (c) 2011-2012  Cristian Constantin
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program. If not, see <http://www.gnu.org/licenses/>.
  --%>

<!DOCTYPE html>
<html>
<head>
    <title>Quizio login</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/login.css"/>
</head>
<body onload='document.f.j_username.focus();'>
<div id="wrapper">
    <h3>Login with Username and Password</h3>

    <form name='f' action='${pageContext.request.contextPath}/j_spring_security_check' method='POST'>
        <table>
            <%
                if (request.getParameter("login_error") != null) {
            %>
            <tr>
                <td colspan="2" class="login-error">Invalid ID or password.</td>
            </tr>
            <%
                }
            %>
            <tr>
                <td>User:</td>
                <td><input type='text' name='j_username' value=''></td>
            </tr>
            <tr>
                <td>Password:</td>
                <td><input type='password' name='j_password'/></td>
            </tr>
        </table>
        <input name="submit" type="submit" value="Login"/>
    </form>
</div>
</body>
</html>